<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <include file="Public:header" />
  <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body>
  <include file="Public:body_top" />

  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-3 col-md-2 sidebar hidden-xs">
        <div class="menu">
          <dl>
            <dt><i class="cm-order"></i>小程序</dt>
            <dd><a href="{:U('Apps/xcx_edit')}">小程序配置</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=xcx_msg_edit">小程序模板消息</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=storage">存储配置</a></dd>
            <dd class="active"><a href="{:U('Apps/xcx_edit')}&tpl=sms">短信配置</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=withdraw">提现配置</a></dd>
            <dd><a href="{:U('Mode/index')}">首页模式图标</a></dd>
          </dl>
          <dl>
            <dt><i class="cm-advert"></i>广告管理</dt>
            <dd><a href="{:U('Adverts/index')}">广告列表</a></dd>
            <dd><a href="{:U('Adverts/add')}">新建广告</a></dd>
          </dl>
          <dl>
            <dt><i class="icon-uniE611"></i>帮助管理</dt>
            <dd><a href="{:U('Helps/index')}">帮助列表</a></dd>
            <dd><a href="{:U('Helps/add')}">新建帮助</a></dd>
          </dl>
        </div>
      </div>
      <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <div class="main-hd">
          <h5>{$title}</h5>
        </div>

        <div class="main-bd">
          <div class="form-box">
            <form class="form-horizontal" method="post" action="{:U('Apps/xcx_update')}">
              <div class="form-group">
                <label class="col-sm-2 control-label">短信类型</label>
                <div class="col-sm-3">
                  <select name="sms_type" class="form-control">
                    <option value="1" <if condition="$app.sms_type eq 1">selected</if>>阿里大于</option>
                    <option value="2" <if condition="$app.sms_type eq 2">selected</if>>阿里云</option>
                  </select>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">AppKey</label>
                <div class="col-sm-3">
                  <input type="text" class="form-control" name="smsct_appkey" id="smsct_appkey" value="{$app.smsct_appkey}">
                </div>
                <label class="col-sm-2 control-label">SecretKey</label>
                <div class="col-sm-3">
                  <input type="text" class="form-control" name="smsct_secretkey" id="smsct_secretkey" value="{$app.smsct_secretkey}">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">验证码模板</label>
                <div class="col-sm-3">
                  <input type="text" class="form-control" name="smsct_tpcode" id="smsct_tpcode" value="{$app.smsct_tpcode}">
                </div>
                <label class="col-sm-2 control-label">订单提醒模板</label>
                <div class="col-sm-3">
                  <input type="text" class="form-control" name="smsct_ordertpcode" id="smsct_ordertpcode" value="{$app.smsct_ordertpcode}">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">退款提醒模板</label>
                <div class="col-sm-3">
                  <input type="text" class="form-control" name="smsct_refundcode" id="smsct_refundcode" value="{$app.smsct_refundcode}">
                </div>
                <label class="col-sm-2 control-label">点赞提醒模板</label>
                <div class="col-sm-3">
                  <input type="text" class="form-control" name="smsct_zanwincode" id="smsct_zanwincode" value="{$app.smsct_zanwincode}">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">短信签名</label>
                <div class="col-sm-3">
                  <input type="text" class="form-control" name="smsct_signname" id="smsct_signname" value="{$app.smsct_signname}">
                </div>
              </div>

              <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                  <input type="hidden" name="id" value="{$app.id}">
                  <input type="hidden" name="tpl" value="{$tpl}">
                  <input type="submit" class="btn btn-primary" value="提交">
                </div>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</body>

</html>